package com.kl.feign.fallback;

import com.kl.domain.LogisticsStoreDTOS;
import com.kl.em.ConstantEnum;
import com.kl.em.Result;
import com.kl.feign.ThreeSelectFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ThreeSelectFeignFallback implements ThreeSelectFeign {
    @Override
    public Result getPrice(Integer id, Integer volume, Integer kg) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<List<LogisticsStoreDTOS>> findById(String storeName) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<LogisticsStoreDTOS> findBywaybillId(String waybill_id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result<LogisticsStoreDTOS> findByPhone(String consigneePhone) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result getareas(Integer id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result getcity(Integer id) {
        return Result.build(ConstantEnum.FaillBack);
    }

    @Override
    public Result getprovinces(Integer id) {
        return Result.build(ConstantEnum.FaillBack);
    }
}
